const db = uniCloud.database()
const dbCmd = db.command
const dictDataName = 'sh_dict_data'
const dictDataCollection = db.collection(dictDataName)
const patternName = 'sh_pattern'
const patternCollection = db.collection(patternName)
const deviceName = 'sh_device'
const deviceCollection = db.collection(deviceName)
const userDeviceName = 'sh_user_device'
const userDeviceCollection = db.collection(userDeviceName)
const userCollectionName = 'sh_user_collection'
const userCollectionCollection = db.collection(userCollectionName)
const playlistName = 'sh_user_playlist'
const playlistCollection = db.collection(playlistName)
const messageName = 'sh_user_message'
const messageCollection = db.collection(messageName)
const userShareName = 'sh_user_share'
const userShareCollection = db.collection(userShareName)
const featuredPlaylistName = 'sh_featured_playlist'
const featuredPlaylistCollection = db.collection(featuredPlaylistName)
const userFavouriteName = 'sh_user_favourite'
const userFavouriteCollection = db.collection(userFavouriteName)

module.exports = {
  db,
  dbCmd,
  dictDataName,
  dictDataCollection,
  patternName,
  patternCollection,
  deviceName,
  deviceCollection,
  userDeviceName,
  userDeviceCollection,
  userCollectionName,
  userCollectionCollection,
  playlistName,
  playlistCollection,
  messageName,
  messageCollection,
  userShareName,
  userShareCollection,
  featuredPlaylistName,
  featuredPlaylistCollection,
  userFavouriteName,
  userFavouriteCollection
}
